package com.oxygen.design.visitor.interfaces.impl;

import com.oxygen.design.visitor.interfaces.ComputerPartVisitor;

/**
 * @author wangjie
 * @title: ComputerPartDisplayVisitor
 * @description: TODO
 * @date 2022/3/30 22:17
 **/
public class ComputerPartDisplayVisitor implements ComputerPartVisitor {

    @Override
    public void visit(Computer computer) {
        System.out.println("Displaying Computer.");
    }

    @Override
    public void visit(Mouse mouse) {
        System.out.println("Displaying Mouse.");
    }

    @Override
    public void visit(Keyboard keyboard) {
        System.out.println("Displaying Keyboard.");
    }

    @Override
    public void visit(Monitor monitor) {
        System.out.println("Displaying Monitor.");
    }
}